package com.ruoyi.factorydata.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.factorydata.domain.ProcessMaterialRelation;

/**
 * 工序物料关联Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-12
 */
public interface ProcessMaterialRelationMapper extends BaseMapper<ProcessMaterialRelation> {
    /**
     * 查询工序物料关联
     *
     * @param id 工序物料关联主键
     * @return 工序物料关联
     */
    public ProcessMaterialRelation selectProcessMaterialRelationById(Long id);

    /**
     * 查询工序物料关联列表
     *
     * @param processMaterialRelation 工序物料关联
     * @return 工序物料关联集合
     */
    public List<ProcessMaterialRelation> selectProcessMaterialRelationList(ProcessMaterialRelation processMaterialRelation);

    /**
     * 新增工序物料关联
     *
     * @param processMaterialRelation 工序物料关联
     * @return 结果
     */
    public int insertProcessMaterialRelation(ProcessMaterialRelation processMaterialRelation);

    /**
     * 修改工序物料关联
     *
     * @param processMaterialRelation 工序物料关联
     * @return 结果
     */
    public int updateProcessMaterialRelation(ProcessMaterialRelation processMaterialRelation);

    /**
     * 删除工序物料关联
     *
     * @param id 工序物料关联主键
     * @return 结果
     */
    public int deleteProcessMaterialRelationById(Long id);

    /**
     * 批量删除工序物料关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProcessMaterialRelationByIds(Long[] ids);
}